import java.util.Scanner;

public class test1 {
    public static void main(String[] args) throws InterruptedException {

        Scanner scanner = new Scanner(System.in);

        int[] arr = new int[7];
        for (int i = 0; i < 7; i++) {
            arr[i] = scanner.nextInt();
        }
        Thread thread1 = new Thread(() -> {
            //计算平均值
            int avg = 0;
            for (int i = 0; i < arr.length; i++) {
                avg += arr[i];
            }
            avg /= arr.length;
            System.out.println("The average value is "+avg);
        });

        Thread thread2 = new Thread(() -> {
            //计算平均值
            int min = arr[0];
            for (int i = 0; i < arr.length; i++) {
                if(arr[i] < min) {
                    min = arr[i];
                }
            }
            System.out.println("The minimum value is "+min);
        });

        Thread thread3 = new Thread(() -> {
            //计算平均值
            int max = arr[0];
            for (int i = 0; i < arr.length; i++) {
                if(arr[i] > max) {
                    max = arr[i];
                }
            }
            System.out.println("The maximum value is "+max);
        });

        thread1.start();
        thread1.join();
        thread2.start();
        thread2.join();
        thread3.start();
    }
}
